<%@ page import="sistema.Venda" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'venda.label', default: 'Venda')}" />
  <title><g:message code="default.create.label" args="[entityName]" /></title>
</head>
<body>
  <a href="#create-venda" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
  <div class="nav" role="navigation">
    <ul>
      <li><g:link class="home" controller="admin" action="index">Home</g:link></li>
    </ul>
  </div>
  <div id="create-venda" class="content scaffold-create" role="main">
    <h1>Transferencia Estoque Consultor</h1>
    <g:if test="${flash.message}">
      <div class="message" role="status">${flash.message}</div>
    </g:if>   
    <g:form controller="produto" action="conferencia" >
      <div class="fieldcontain ${hasErrors(bean: vendaInstance, field: 'vendedor', 'error')} required">
        <label for="vendedor">
          Consultor
          <span class="required-indicator">*</span>
        </label>
        <g:select id="usuario" name="usuario.id" from="${autenticacao.Usuario.list()}" optionKey="id" required="" value="${usuario?.id}" class="many-to-one"/>
      </div>
      <fieldset class="form">
        <g:render template="transferencia"/>
      </fieldset>
      <fieldset class="buttons">
        <g:submitButton name="create" class="save" value="Proximo"/>
      </fieldset>
    </g:form>
  </div>
</body>
</html>
